package com.coocaa.ops.admin.v1.timedtask.model;

import com.coocaa.ops.common.core.base.model.ResourceBaseModel;
import lombok.Data;

import java.util.Date;

/**
 * @author bjh
 * @description
 * @date 2021/5/11 09:39
 */
@Data
public class BaseTimedInfo extends ResourceBaseModel {
    private String timedType;
    private Date releaseTime;
    private Integer userId;

    public BaseTimedInfo() {
    }

    public BaseTimedInfo(String type, Integer id, Integer version, String timedType, Integer userId) {
        super(type, id, version);
        this.timedType = timedType;
        this.userId = userId;
    }

    public static BaseTimedInfo getBaseTimedInfo(String type, Integer id, Integer version, String timedType, Integer userId) {
        return new BaseTimedInfo(type, id, version, timedType, userId);
    }
}
